package com.mhh.selary.backend.dto.user;

import com.mhh.sdk.beans.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author mhh
 * @date 2020-11-25 17:14:07
 */
@Getter
@Setter
@ApiModel("修改本人密码")
public class UserChangePwdDTO extends BaseDTO {

    @ApiModelProperty("原密码")
    @NotBlank(message = "原密码不能为空")
    private String oldPassword;

    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPassword;
}
